<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="FileImages" targetNamespace="http://tempuri.org/FileImages.xsd" xmlns:mstns="http://tempuri.org/FileImages.xsd" xmlns="http://tempuri.org/FileImages.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="PoserFilesConnectionString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="PoserFilesConnectionString (MySettings)" PropertyReference="ApplicationSettings.PoserFiles.My.MySettings.GlobalReference.Default.PoserFilesConnectionString" Provider="System.Data.OleDb">
          </Connection>
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="FileImageTableAdapter" GeneratorDataComponentClassName="FileImageTableAdapter" Name="FileImage" UserDataComponentName="FileImageTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="PoserFilesConnectionString (MySettings)" DbObjectName="FileImage" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="True" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="True">
                    <CommandText>DELETE FROM FileImage
WHERE     (file_id = ?) AND (image_name = ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="False" AutogeneratedName="Param1" ColumnName="file_id" DataSourceName="FileImage" DataTypeServer="DbType.Int32" DbType="Int32" Direction="Input" ParameterName="file_id" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="file_id" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="Param2" ColumnName="image_name" DataSourceName="FileImage" DataTypeServer="DbType.StringFixedLength(255)" DbType="String" Direction="Input" ParameterName="image_name" Precision="0" ProviderType="WChar" Scale="0" Size="255" SourceColumn="image_name" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="False">
                    <CommandText>INSERT INTO `FileImage` (`file_id`, `image_name`) VALUES (?, ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="file_id" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="file_id" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="image_name" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="image_name" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="True">
                    <CommandText>SELECT     fi_id, file_id, image_name
FROM         FileImage
WHERE     (file_id = ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="False" AutogeneratedName="Param1" ColumnName="file_id" DataSourceName="FileImage" DataTypeServer="DbType.Int32" DbType="Int32" Direction="Input" ParameterName="file_id" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="file_id" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="False">
                    <CommandText>UPDATE `FileImage` SET `file_id` = ?, `image_name` = ? WHERE ((`fi_id` = ?) AND ((? = 1 AND `file_id` IS NULL) OR (`file_id` = ?)) AND ((? = 1 AND `image_name` IS NULL) OR (`image_name` = ?)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="file_id" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="file_id" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="image_name" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="image_name" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_fi_id" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="fi_id" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_file_id" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="file_id" SourceColumnNullMapping="True" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_file_id" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="file_id" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_image_name" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="image_name" SourceColumnNullMapping="True" SourceVersion="Original">
                      </Parameter>
                      <Parameter AllowDbNull="False" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_image_name" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="image_name" SourceColumnNullMapping="False" SourceVersion="Original">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="fi_id" DataSetColumn="fi_id" />
              <Mapping SourceColumn="file_id" DataSetColumn="file_id" />
              <Mapping SourceColumn="image_name" DataSetColumn="image_name" />
            </Mappings>
            <Sources>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources>
        </Sources>
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="FileImages" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="FileImages" msprop:Generator_DataSetName="FileImages">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="FileImage" msprop:Generator_UserTableName="FileImage" msprop:Generator_RowDeletedName="FileImageRowDeleted" msprop:Generator_RowChangedName="FileImageRowChanged" msprop:Generator_RowClassName="FileImageRow" msprop:Generator_RowChangingName="FileImageRowChanging" msprop:Generator_RowEvArgName="FileImageRowChangeEvent" msprop:Generator_RowEvHandlerName="FileImageRowChangeEventHandler" msprop:Generator_TableClassName="FileImageDataTable" msprop:Generator_TableVarName="tableFileImage" msprop:Generator_RowDeletingName="FileImageRowDeleting" msprop:Generator_TablePropName="FileImage">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="fi_id" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="fi_id" msprop:Generator_ColumnVarNameInTable="columnfi_id" msprop:Generator_ColumnPropNameInRow="fi_id" msprop:Generator_ColumnPropNameInTable="fi_idColumn" type="xs:int" />
              <xs:element name="file_id" msprop:Generator_UserColumnName="file_id" msprop:Generator_ColumnVarNameInTable="columnfile_id" msprop:Generator_ColumnPropNameInRow="file_id" msprop:Generator_ColumnPropNameInTable="file_idColumn" type="xs:int" minOccurs="0" />
              <xs:element name="image_name" msprop:Generator_UserColumnName="image_name" msprop:Generator_ColumnVarNameInTable="columnimage_name" msprop:Generator_ColumnPropNameInRow="image_name" msprop:Generator_ColumnPropNameInTable="image_nameColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:FileImage" />
      <xs:field xpath="mstns:fi_id" />
    </xs:unique>
  </xs:element>
</xs:schema>